<template>
  <div class="weui-panel weui-panel_access mycard">
    <div class="weui-panel__bd">
      <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg btnone">
        <div class="weui-media-box__bd">
          <h4 class="weui-media-box__title gray">{{uname}} · {{utag}}</h4>
          <a :href="'tel:' + uphone" class="phoneWrap">{{uphone}} <span class="iconfont">&#xe792;</span></a>
        </div>
        <div class="weui-media-box__hd">
          <img class="weui-media-box__thumb" :src="txsrc" alt="">
        </div>
      </a>
      <p class="weui-media-box weui-media-box_appmsg btnone pt0" :class="{'pb0': umoney}">{{udesc}}</p>
      <p class="weui-media-box weui-media-box_appmsg btnone pt0" v-if="umoney">预计花费：{{umoney}}</p>
    </div>
    <div class="weui-panel__ft">
      <a href="javascript:void(0);" class="weui-cell weui-cell_access weui-cell_link">
        <router-link :to="ulink" class="weui-cell__bd blue">查看更多</router-link>
        <span class="weui-cell__ft"></span>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'OdUser',
  props: ['uname', 'utag', 'uphone', 'utx', 'udesc', 'umoney', 'ulink'],
  computed: {
    txsrc () {
      return this.cm.getAvatar(this.utx)
    }
  }
}
</script>

<style lang="stylus" scoped>
.weui-media-box_appmsg
  align-items: flex-start
.weui-media-box__title
  white-space normal
.phoneWrap
  font-size 22px
  font-family PingFangSC-Medium
  line-height 1.8em
  color #2d3034
  display flex
  .iconfont
    font-size 18px
    color #576b95
    margin-left .5em
</style>
